package com.cssw.fyzb.core.mao.live;

import com.cssw.fyzb.core.model.mos.LiveStatMo;

/**
 * @author YangYiQun
 */
public interface LiveStatMao {

    LiveStatMo findByLiveId(Long liveId);

    /**
     * 创建直播间
     *
     * @param liveId
     */
    void create(Long liveId, Long userId, Long anchorId, String pull, String push, String accelerate);

    /**
     * 完成直播
     * @param liveId
     */
    void drop(Long liveId);

    /**
     * 增加点赞
     * @param liveId
     */
    void incLikes(Long liveId);

    /**
     * 增加展示人数
     * @param liveId
     */
    void incViews(Long liveId);

    /**
     * 开始pk
     * @param liveId
     * @param pkId
     * @param pkLiveId
     * @param pkUserId
     */
    void startPk(Long liveId, Long pkId, Long pkLiveId, Long pkUserId);

    /**
     * 结束pk
     * @param liveId
     */
    void stopPk(Long liveId);

    /**
     * 发送红包
     * @param liveId
     * @param redPackId
     * @param redOpenTime
     */
    void sendRedPack(Long liveId, Long redPackId, Long redOpenTime);
}
